#ifndef NUMBERKEYBOARDDIALOG_H
#define NUMBERKEYBOARDDIALOG_H

#include <QDialog>
#include <QLineEdit>

namespace Ui {
    class NumberKeyboardDialog;
}

class NumberKeyboardDialog : public QDialog
{
    Q_OBJECT

public:
    explicit NumberKeyboardDialog(QWidget *parent = 0);
    ~NumberKeyboardDialog();
    QLineEdit* getLineEdit();
    void setEchoMode(bool xPassword);
protected:
    void paintEvent(QPaintEvent *);

signals:
    void signalSetNumber(QString num);
    void signalCancel();

private:
    Ui::NumberKeyboardDialog *ui;

private slots:
    void slotNumber(QString str);
    void on_btnCancel_clicked();
    void on_btnConfirm_clicked();
    void on_btn_backspace_clicked();
};

#endif // NUMBERKEYBOARDDIALOG_H
